package com.haoshuang.zhouzhoubang.ui.page.order.scan.writeofforder

import com.haoshuang.zhouzhoubang.R
import com.haoshuang.zhouzhoubang.databinding.ItemHexiaoOrderBinding
import com.haoshuang.zhouzhoubang.model.bean.HexiaoOrderInfoBean.OrderGoodsBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter
import com.mufeng.libs.utils.view.load

class WriteOffOrderAdapter(data: MutableList<OrderGoodsBean>) : BaseBindingQuickAdapter<OrderGoodsBean, ItemHexiaoOrderBinding>(data) {

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: OrderGoodsBean?) {
        holder.getViewBinding<ItemHexiaoOrderBinding>().apply {
            ivHeadPic.load(
                item?.goods_image,
                placeholder = R.mipmap.default_image,
                error = R.mipmap.default_image,
            )

            tvGoodsName.text = item?.goods_name
            tvSkuName.text = "规格："+item?.sku_name +"    数量："+item?.num
            tvMoney.text = item?.money
        }
    }

}